package com.clementheliou.cheliou.business.functional.photo;

import java.awt.Dimension;

import com.clementheliou.cheliou.dal.model.photo.Photo;

/**
 * Functional service about the photos. All the methods implementations should
 * contain a functional behavior; that is to say more than an access to the
 * model layer. This kind of service may depend on the data access ones and can
 * be used both by web layer and others functional services.
 * 
 * @author Clément HELIOU (clement.heliou@gmail.com)
 * @since 1.0
 */
public interface PhotoFunctionalService {

	/**
	 * Determinates and returns the photo path to be used depending on the
	 * current screen size.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @param currentScreenSize
	 *            the current screen size.
	 * @param photo
	 *            the requested photo.
	 * @return the photo path to be used with the current screen.
	 * @since 1.0
	 */
	String getPhotoPathToUse(Dimension currentScreenSize, Photo photo);
}
